import $math from './moneyUtils'

export function toYuan(value) {
  if (value === undefined || value === null) {
    return 0;
  }
  return $math.div(value, 100);
}

function install(Vue) {
  Vue.filter('toYuan', toYuan)
}

export default {
  toYuan,
  install
}

